package com.star.modules.sys.enums;

/**
 * Created by Administrator on 2018/5/5.
 */
public enum ResultEnum {
    //请求成功返回状态码
    SUCCESS(100, "请求成功"),
    //请求失败返回状态码
    EROOR(500, "服务异常");

    private int code;
    private String msg;

    private ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
